<!DOCTYPE html>
<html>
<head>
    <title>Time My Life</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
    <script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
    <!-- Main page in jQuery Mobile style -->
    <div data-role="page" id="main_page">
        <div data-role="header" data-theme="a">Time My Life</div>
        <div data-role="main" class="ui-content">
            <form action="/view" method="post">
                <label for="id">ID:</label>
                <input type="text" name="id" value="{{id}}">
                {% if img_src %}
                <img src="data:image/png;base64,{{img_src}}"/>
                {% endif %}
                <label for="view-choice" class="select">Viewing scope:</label>
                <select name="view-choice" id="view-choice">
                    <option value="weekday">Weekday: Mon-Fri</option>
                    <option value="holiday">Holiday: Sat-Sun</option>
                    <option value="alldays">All: Mon-Sun</option>
                    <option value="monday">Monday</option>
                    <option value="tuesday">Tuesday</option>
                    <option value="wednesday">Wednesday</option>
                    <option value="thursday">Thursday</option>
                    <option value="friday">Friday</option>
                    <option value="saturday">Saturday</option>
                    <option value="sunday">Sunday</option>
                </select>
                <input type="submit" value="View">
            </form>
        </div>
        <div data-role="footer" data-theme="a">View Usage: {{id}}</div>
    </div>
</body>
</html>